<?php
    // +----------------------------------------------------------------------
    // | 默认验证器
    // +----------------------------------------------------------------------
    // | Copyright (c) 2015-2024 http://www.yicmf.com, All rights reserved.
    // +----------------------------------------------------------------------
    // | Author: 微尘 <yicmf@qq.com>
    // +----------------------------------------------------------------------
    namespace app\common\validate;

    use think\Container;
    use think\Validate;
    use think\App;
    use think\Request;

    class Base extends Validate
    {
        /**
         * 应用实例
         * @var \think\App
         */
        protected $app;

        /**
         * Request实例
         * @var \think\Request
         */
        protected $request;


        /**
         * 架构函数
         * @access public
         */
        public function __construct()
        {
            parent::__construct();
            $this->app = app();
            $this->request = $this->app['request'];
        }



        public function getRegex()
        {
            return $this->defaultRegex;
        }

    }
